{{extend "base.html"}}

{{block head}}
{{use "ueditor"}}
<script type="text/javascript">
	var submitForm = function($dialog, $grid, $pjq) {
		if ($('form').form('validate')) {
			var url;
			url = '/ueditor/applicationtypedocsave';
			$.post(url, sy.serializeObject($('form')), function(result) {
				if (result.success) {
					$grid.datagrid('reload');
					$dialog.dialog('destroy');
				} else {
					$pjq.messager.alert('提示', result.msg, 'error');
				}
			}, 'json');
		}
	};
</script>
{{end}}

{{block content}}
<div>
    <h1 align="center">{{=msg}}</h1>
	<form method="post" class="form">
	<input name="id" value="{{=id}}" type="hidden" />
    <script id="editor" name="editor" type="text/plain" style="width:980px;height:500px;">
		{{<<content}}
	</script>
	</form>
</div>

	<script type="text/javascript">
		var editor = UE.getEditor('editor')
	</script>
{{end}}

